package com.example.kt_base.s4

//TODO 76.Kotlin语言的初始化init
class KtBase76(var name:String,age:Int,sex:Char){

    init {
        println("主构造被调用$name,$age,$sex")
    }
    fun show(){
        println(name)
    }

}
fun main() {

    KtBase76("Derry",18,'男').show()

}
